import http from "../request.js";
// 列表
export function nurseDataAnalysis(data) {
  return http.request({
    url: "/admin/NurseDataAnalysis/nurseDataAnalysis",
    params: data,
  });
}
// nurse地图
export function nurseDataMap(data) {
  return http.request({
    url: "/admin/NurseDataAnalysis/nurseDataMap",
    params: data,
  });
}
// user地图
export function userOrderDate(data) {
  return http.request({
    url: "/admin/userDataAnalysis/userOrderDate",
    params: data,
  });
}
// 趋势图
export function trendDataAnalysis(data) {
  return http.request({
    url: "/admin/NurseDataAnalysis/trendDataAnalysis",
    params: data,
  });
}

// 用户数据
export function userData(data) {
  return http.request({
    url: "/admin/user/data",
    method: "POST",
    data: data,
  });
}
export function trendAnalyse(data) {
  return http.request({
    url: "/admin/user/trendAnalyse",
    method: "get",
    params: data,
  });
}

export function getIncidentPerson(data) {
  return http.request({
    url: "/admin/user/getIncidentPerson",
    method: "get",
    params: data,
  });
}

export function getIncidentCount(data) {
  return http.request({
    url: "/admin/user/getIncidentCount",
    method: "get",
    params: data,
  });
}

// 分享汇总
export function shareData(data) {
  return http.request({
    url: "/admin/shareData/shareData",
    method: "POST",
    data: data,
  });
}
// 分享图标
export function shareDataLinesPlan(data) {
  return http.request({
    url: "/admin/shareData/shareDataLinesPlan",
    method: "POST",
    data: data,
  });
}
